/*
day35
2019.10.2
*/

#include<stdio.h>
#include<stdlib.h>
struct ListNode {
    int val;
    struct ListNode *next;
};
 
struct ListNode* reverseList(struct ListNode* head){
	
	struct ListNode *pre=NULL,*cur=head,*tem;
	while(cur)
	{
		tem=cur->next;
		cur->next=pre;
		pre=cur;
		cur=tem;
	}
	return pre;
}

int main()
{
	return 0;
}
